import storage from '@/utils/storage'

export default {
    namespaced: true,
    state:{//state
        userId: storage.get('taxDiscount')?storage.get('taxDiscount').userId: '',
        companyName: storage.get('taxDiscount')?storage.get('taxDiscount').companyName: '' ,
        projectId: storage.get('taxDiscount')?storage.get('taxDiscount').projectId: '' ,
        resultId: storage.get('taxDiscount')?storage.get('taxDiscount').resultId: '' ,
    },
    mutations:{
        setUserId(state,val) {
            state.userId = val
        },
        setCompanyName(state,val) {
            state.companyName = val
        },
        setProjectId(state,val) {
            state.projectId = val
        },
        setResultId(state,val) {
            state.resultId = val
        }
    }
}